modemmanager: allow empty initial EPS bearer APN
authorSimonas Tamošaitis <simsasss@gmail.com>
Thu, 23 Oct 2025 17:25:33 +0000 (20:25 +0300)
committerFlorian Eckert <Eckert.Florian@googlemail.com>
Tue, 9 Dec 2025 14:45:10 +0000 (15:45 +0100)
This commit removes the non-empty APN requirement for initial EPS
bearer. An empty APN value is valid and means that the modem will use a
network provided APN offered by the operator.

Signed-off-by: Simonas Tamošaitis <simsasss@gmail.com>
net/modemmanager/Makefile
net/modemmanager/files/lib/netifd/proto/modemmanager.sh

index 3b3c9aab9371c5bbef32ff50c70f60b7dc89c89e..3949e0d2777c2e017bc98ccb16e2eabfed34f277 100644 (file)
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=modemmanager
 PKG_VERSION:=1.24.0
-PKG_RELEASE:=7
+PKG_RELEASE:=8
 
 PKG_SOURCE_PROTO:=git
 PKG_SOURCE_URL:=https://gitlab.freedesktop.org/mobile-broadband/ModemManager.git
index f3ee7c8b624405743371cac88487e7701646ed25..4cfc9bcdb63231573a32cbc34441c85c383fd0dc 100644 (file)
@@ -526,13 +526,6 @@ modemmanager_init_epsbearer() {
        local connectargs="$3"
        local apn="$4"
 
-       [ "$eps" != 'none' ] && [ -z "${apn}" ] && {
-               echo "No '$eps' init eps bearer apn configured"
-               proto_notify_error "${interface}" MM_INIT_EPS_BEARER_APN_NOT_CONFIGURED
-               proto_block_restart "${interface}"
-               return 1
-       }
-
        if [ "$eps" = "none" ]; then
                echo "Deleting inital EPS bearer..."
        else